package com.ruoyi.finance.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.finance.mapper.TSubsidiaryMapper;
import com.ruoyi.finance.domain.TSubsidiary;
import com.ruoyi.finance.service.ITSubsidiaryService;

/**
 * 辅助核算Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-25
 */
@Service
public class TSubsidiaryServiceImpl implements ITSubsidiaryService 
{
    @Autowired
    private TSubsidiaryMapper tSubsidiaryMapper;

    /**
     * 查询辅助核算
     * 
     * @param id 辅助核算主键
     * @return 辅助核算
     */
    @Override
    public TSubsidiary selectTSubsidiaryById(Long id)
    {
        return tSubsidiaryMapper.selectTSubsidiaryById(id);
    }

    /**
     * 查询辅助核算列表
     * 
     * @param tSubsidiary 辅助核算
     * @return 辅助核算
     */
    @Override
    public List<TSubsidiary> selectTSubsidiaryList(TSubsidiary tSubsidiary)
    {
        return tSubsidiaryMapper.selectTSubsidiaryList(tSubsidiary);
    }

    /**
     * 新增辅助核算
     * 
     * @param tSubsidiary 辅助核算
     * @return 结果
     */
    @Override
    public int insertTSubsidiary(TSubsidiary tSubsidiary)
    {
        return tSubsidiaryMapper.insertTSubsidiary(tSubsidiary);
    }

    /**
     * 修改辅助核算
     * 
     * @param tSubsidiary 辅助核算
     * @return 结果
     */
    @Override
    public int updateTSubsidiary(TSubsidiary tSubsidiary)
    {
        return tSubsidiaryMapper.updateTSubsidiary(tSubsidiary);
    }

    /**
     * 批量删除辅助核算
     * 
     * @param ids 需要删除的辅助核算主键
     * @return 结果
     */
    @Override
    public int deleteTSubsidiaryByIds(Long[] ids)
    {
        return tSubsidiaryMapper.deleteTSubsidiaryByIds(ids);
    }

    /**
     * 删除辅助核算信息
     * 
     * @param id 辅助核算主键
     * @return 结果
     */
    @Override
    public int deleteTSubsidiaryById(Long id)
    {
        return tSubsidiaryMapper.deleteTSubsidiaryById(id);
    }
}
